package com.tonghe.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Date:2022/8/15- 08- 15- 22:21
 * @author: tonghe
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArticleDto {

    @ApiModelProperty(notes = "id")
    private Long id;

    @ApiModelProperty(notes = "标题")
    private String title;

    @ApiModelProperty(notes = "文章内容")
    private String content;

    @ApiModelProperty(notes = "文章摘要")
    private String summary;

    @ApiModelProperty(notes = "所属分类id")
    private Long categoryId;

    @ApiModelProperty(notes = "缩略图")
    private String thumbnail;

    @ApiModelProperty(notes = "是否置顶（0否，1是）")
    private String isTop;

    @ApiModelProperty(notes = "状态（0已发布，1草稿）")
    private String status;

    @ApiModelProperty(notes = "访问量")
    private Long viewCount;

    @ApiModelProperty(notes = "是否允许评论 1是，0否")
    private String isComment;

    @ApiModelProperty(notes = "文章对应标签")
    private List<Long> tags;

}
